/**
 * FileName: IdVersion
 * Author: TangZaoBang
 * Date: 2023/04/29 15:51
 * Description:
 * <p>
 * History:
 * <author> TangZaoBang
 * <time> 2023/04/29 15:51
 * <version> 1.0.0
 * <desc> 版本描述
 */

package com.bosssoft.quickstart.demo.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * @Class IdVersion
 * @Description 包含id和version字段用于删除方法
 * @Author TangZaoBang
 * @Date 2023/04/29 15:51
 * @Version
 */
@Data
@Slf4j
@AllArgsConstructor
@NoArgsConstructor
public class IdVersion {
    /**
     *  主键   @JsonSerialize(using= ToStringSerializer.class)自定义序列化器将对象序列化成字符串
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    /**
     * 发行的版本
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long version;

}
